package com.cms.common.model.entity;

import lombok.Data;

import javax.persistence.*;

/**
 * 语言
 */
@Data
@Entity
public class Language extends BaseEntity {

    @Column(nullable = false, length = 10)
    private String code;  // 语言代码，如 zh-CN, en-US

    @Column(nullable = false, length = 50)
    private String name;  // 语言名称，如 简体中文、English

    @Column(nullable = false)
    private Boolean isDefault = false;  // 是否为默认语言

    @Column(nullable = false)
    private Boolean enabled = true;  // 是否启用
}
